<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
    <%@include file="/include/header.html" %>
    <script type="text/javascript" src="${ctx}/appjs/tenant/manufacturer/tenantManufacturer.js"></script>
</head>

<script type="text/javascript">
    $('#topLink', window.parent.document).html(function (i, origText) {
        return '<ol class="breadcrumb">' +
            '<li class="breadcrumb-item">' +
            '<a href="">主页</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a>运营商</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<strong>编辑设备生厂商</strong>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a href="javascript:window.history.back()"><i class="fa fa-times"></i> 返回</a>' +
            '</li>' +
            '</ol>';
    });

</script>

<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <div class="columns pull-left">
                        <h5 class="font-bold">编辑设备生厂商</h5>
                    </div>
                    <div class="ibox-tools">
                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>

                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="frmTenantManufacturer">
                        <input type="hidden" name="manufacturerId" id="manufacturerId"
                               value="${tenantManufacturer.manufacturerId}">
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">设备生产商组织机构代码：</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" id="manufacturerCode" name="manufacturerCode"
                                       value="${tenantManufacturer.manufacturerCode}" readonly>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">设备生厂商名称：</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" id="manufacturerName" name="manufacturerName"
                                       value="${tenantManufacturer.manufacturerName}">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">联系电话：</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" id="phone" name="phone"
                                       value="${tenantManufacturer.phone}">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">公司地址：</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" id="address" name="address"
                                       value="${tenantManufacturer.address}">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">营业执照编号：</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" id="license" name="license"
                                       value="${tenantManufacturer.license}">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">公司法人：</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" id="owner" name="owner"
                                       value="${tenantManufacturer.owner}">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">法人身份证：</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" id="ownerId" name="ownerId"
                                       value="${tenantManufacturer.ownerId}">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">联系人名字：</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" id="contactName" name="contactName"
                                       value="${tenantManufacturer.contactName}">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">品牌名称：</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" id="brandName" name="brandName"
                                       value="${tenantManufacturer.brandName}">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">枪充电启动方式：</label>
                            <div class="col-sm-8">
                                <select class="form-control" id="gunPluginType" name="gunPluginType">
                                    <option value="0"
                                            <c:if test="${tenantManufacturer.gunPluginType eq '0'}">selected</c:if>   >
                                        不重试读取
                                    </option>
                                    <option value="1"
                                            <c:if test="${tenantManufacturer.gunPluginType eq '1'}">selected</c:if>   >
                                        重试读取
                                    </option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">枪结算计费方式：</label>
                            <div class="col-sm-8">
                                <select class="form-control" id="gunCloseType" name="gunCloseType">
                                    <option value="0"
                                            <c:if test="${tenantManufacturer.gunCloseType eq '0'}">selected</c:if> >
                                        不拔枪结算
                                    </option>
                                    <option value="1"
                                            <c:if test="${tenantManufacturer.gunCloseType eq '1'}">selected</c:if>  >拔枪结算
                                    </option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">状态：</label>
                            <div class="col-sm-8">
                                <select class="form-control" id="status" name="status">
                                    <option value="0"
                                            <c:if test="${tenantManufacturer.status eq '0'}">selected</c:if>   >正常
                                    </option>
                                    <option value="1"
                                            <c:if test="${tenantManufacturer.status eq '1'}">selected</c:if>   >暂停
                                    </option>
                                </select>
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-3 col-sm-offset-8 text-right">
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    addTenantManufacturer.init();
</script>
</body>
</html>
